package com.wn.ticket.mapper;

import com.wn.ticket.entity.EntranceTicket;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author wuqingting
 * @date 2022/8/28
 */
@Repository
public interface EntranceTicketMapper {
    void add(EntranceTicket entranceTicket);

    void addList(@Param("performId") int performId, @Param("entranceTicketList") List<EntranceTicket> entranceTicketList);

    void update(EntranceTicket entranceTicket);

    EntranceTicket getById(int id);

    List<EntranceTicket> getByPerformId(int id);

    //演出简介
    EntranceTicket getByEntranceTicketId(int id);
}
